package java44th.group.controller.admin.region;

import java44th.group.bean.admin.vo.BaseRespVo;
import java44th.group.bean.admin.vo.region.RegionVo;
import java44th.group.service.admin.region.RegionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Aurhor: 11437
 * @DATE: 2022/10/11 19:26
 * @Description:行政区域
 * @Version 1.0
 */
@RestController
@RequestMapping("admin/region")
public class regionController {

    @Autowired
    RegionService regionService;

    @GetMapping("list")
    public BaseRespVo region() {

        RegionVo regionVo = regionService.regionList();

        BaseRespVo baseRespVo = BaseRespVo.ok(regionVo);

        return baseRespVo;
    }


}
